package com.xuecheng.api.content.model.file;


import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/*
图片获得上传凭证返回的属性
 */
@Data
@ApiModel("文件上传凭证封装类")
public class UploadTokenResult {


    @ApiModelProperty(value = "token的类别，1-代码获得上传评测，2-下载获得下载凭证，3-获得管理凭证")
    private String tokenType;

    @ApiModelProperty(value = "存储空间的名称")
    private String scope;

    @ApiModelProperty(value = "文件的唯一标识")
    private String key;

    @ApiModelProperty(value = "凭证内容")
    private String qnToken;


    @ApiModelProperty(value = "存储区域地址")
    private String up_region;

    @ApiModelProperty(value = "cdn的域名")
    private String domain;

    @ApiModelProperty("上传凭证的的存活时间")
    private int deadline;

}
